import os
import librosa


dataset_path = r'/Users/penny/OneDrive - The Chinese University of Hong Kong/recent/segment_input/Pacer' 
Sample_rate = 44100

name = '.DS_Store'     
                    
if os.path.exists(os.path.join(dataset_path, name)):
    os.remove(os.path.join(dataset_path, name))   # for mac

norm_audios_feat = []
for i, root, dirs, files in os.walk(dataset_path):
    #print(os.path.join(dataset_path, str(files))) 
#    print(files)
    signal, sr = librosa.load(files,sr=Sample_rate)
    print(signal)
   # feature_vector = get_feature_vector(y, sr)
   # norm_audios_feat.append(feature_vector)


# path = r'/Users/penny/OneDrive - The Chinese University of Hong Kong/recent/segment_cross_group/train/'  # 原音频目录
# path_segment = r'/Users/penny/OneDrive - The Chinese University of Hong Kong/recent/wav/train/'  # 切割后的音频目录
# name = '.DS_Store'     
                    


